// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** addStudentScore POST /api/student_score/add */
export async function addStudentScoreUsingPost(
  body: API.StudentScoreAddRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong_>('/api/student_score/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** deleteStudentScore POST /api/student_score/delete */
export async function deleteStudentScoreUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/student_score/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** getStudentScoreById GET /api/student_score/get */
export async function getStudentScoreByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getStudentScoreByIdUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseStudentScore_>('/api/student_score/get', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** getStudentNumByLevel GET /api/student_score/get/studentNum/byLevel */
export async function getStudentNumByLevelUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getStudentNumByLevelUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseMapStringLong_>('/api/student_score/get/studentNum/byLevel', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** listStudentScore POST /api/student_score/list */
export async function listStudentScoreUsingPost(
  body: API.StudentScoreQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListStudentScore_>('/api/student_score/list', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listStudentScoreByPage POST /api/student_score/list/page */
export async function listStudentScoreByPageUsingPost(
  body: API.StudentScoreQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageStudentScore_>('/api/student_score/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listScorePageByStudentId POST /api/student_score/list/page/student */
export async function listScorePageByStudentIdUsingPost(
  body: API.StudentScoreQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageStudentScore_>('/api/student_score/list/page/student', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** updateStudentScore POST /api/student_score/update */
export async function updateStudentScoreUsingPost(
  body: API.StudentScoreUpdateRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/student_score/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
